package com.bole.dao;

import com.bole.pojo.DicContentTypeDo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface ContentTypeDao  extends JpaRepository<DicContentTypeDo, Long> {
    @Transactional
    @Modifying
    @Query(value = "delete  from DicContentTypeDo t where  t.id in (:idss) ")
    void deleteBatch(@RequestParam("idss") List<Long> idss);
}
